package com.lcj.bff.driver.feign;

import com.lcj.bff.driver.controller.form.DriverIdForm;
import com.lcj.bff.driver.controller.form.UpdateLocationCacheForm;
import com.lcj.bff.driver.controller.form.UpdateOrderLocationCacheForm;
import com.lcj.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "aoch-mps")
public interface MpsServiceApi {

    /**
     * 更新司机定位缓存
     * @param form
     * @return
     */
    @PostMapping("/driver/location/updateLocationCache")
    public Result updateLocationCache(UpdateLocationCacheForm form);

    /**
     * 清楚司机位置缓存
     * @param form
     * @return
     */
    @PostMapping("/driver/location/removeLocationCache")
    public Result removeLocationCache(DriverIdForm form);

    /**
     * 更新订单司机定位
     * @param form
     * @return
     */
    @PostMapping("/driver/location/updateOrderLocationCache")
    public Result updateOrderLocationCache(UpdateOrderLocationCacheForm form);
}